]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Show wireless-disabled icon when wifi is disabled
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 18 Feb 2022 20:01:17 +0000 (21:01 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 23 Feb 2022 00:15:05 +0000 (00:15 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2198>

js/ui/status/network.js

index e8d8568497c03a8df42706f4f6aae9c241faac76..e365139779335cbde130aa03cfbef57dd9ab0281 100644 (file)
@@ -1413,6 +1413,9 @@ var NMDeviceWireless = class {
     }
 
     _getMenuIcon() {
+        if (!this._client.wireless_enabled)
+            return 'network-wireless-disabled-symbolic';
+
         if (this._device.active_connection)
             return this.getIndicatorIcon();
         else